package com.entity;

/**
 * 订单明细
 * @author HeLiwei
 * 2023年9月4日
 */
public class OrderItem {
	
	/**
	 * 商品
	 */
	private Product product;
	
	/**
	 * 购买数量
	 */
	private int quantity;
	
	public OrderItem() {}

	public OrderItem(Product product, int quantity) {
		this.product = product;
		this.quantity = quantity;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

}
